package com.smbms.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.smbms.entity.Permissions;
import com.smbms.entity.SmbmsRole;

public interface RoleService {

	/**
	 * 所有角色
	 * @return
	 */
    List<SmbmsRole> selectAll();
    

    List<Permissions> selectPermissionsByRoleId(Long id);
    
    int addRolePermission( Long roleId,Long [] permIds);
    

    /**
     * 初始化zTree
     * @param id
     * @return
     */
    List<Permissions> selectRolePermissions(Long id);
}
